package com.AAA.controller.sas;

import com.AAA.entity.LayData;
import com.AAA.entity.sas.TSasRecordDedtail;
import com.AAA.service.sas.TSasRecordDedtailService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * (TSasRecordDedtail)表控制层
 *
 * @author 何泽明
 * @since 2022-11-01 14:15:49
 */
@RestController
@RequestMapping("tSasRecordDedtail")
public class TSasRecordDedtailController {
    /**
     * 服务对象
     */
    @Autowired
    private TSasRecordDedtailService service;

    @PostMapping
    // @RequestBody 把json字符串转化为对象   参数前面
    public LayData insertDetail(@RequestBody List<TSasRecordDedtail> details){
        return new LayData(service.insertBatch(details));
    }

}

